package com.ruoyi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.platform.annotation.Excel;
import com.ruoyi.platform.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * LicenseInfo对象 tp_license_info
 *
 * @author liugang
 * @date 2022-12-05
 */
@ApiModel(value="LicenseInfo对象 tp_license_info", description="tp_license_info业务表")
@TableName("tp_license_info")
public class TpLicenseInfo extends BaseEntity<TpLicenseInfo>
{
private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 用户 */
    @ApiModelProperty(value = "用户")
    private Long userId;

    @Excel(name = "创建人")
    private String userName;

    /** ip地址 */
            @Excel(name = "ip地址")
    @ApiModelProperty(value = "ip地址")
    private String ip;

    /** 机器码 */
            @Excel(name = "机器码")
    @ApiModelProperty(value = "机器码")
    private String mac;

    /** 客户名称 */
            @Excel(name = "客户名称")
    @ApiModelProperty(value = "客户名称")
    private String customerName;

    /** 过期时间 */
            @JsonFormat(pattern = "yyyy-MM-dd")
            @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "过期时间")
    private Date expireTime;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setId(Long id)
            {
            this.id = id;
            }

    public Long getId()
            {
            return id;
            }
    public void setUserId(Long userId)
            {
            this.userId = userId;
            }

    public Long getUserId()
            {
            return userId;
            }
    public void setIp(String ip)
            {
            this.ip = ip;
            }

    public String getIp()
            {
            return ip;
            }
    public void setMac(String mac)
            {
            this.mac = mac;
            }

    public String getMac()
            {
            return mac;
            }
    public void setCustomerName(String customerName)
            {
            this.customerName = customerName;
            }

    public String getCustomerName()
            {
            return customerName;
            }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    @Override
public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("ip", getIp())
            .append("mac", getMac())
            .append("customerName", getCustomerName())
            .append("expiretime", getExpireTime())
            .append("createTime", getCreateTime())
        .toString();
        }
        }
